<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/workflow/resource/src/layui/css/layui.css">
<script src="/workflow/resource/src/js/jquery-1.11.0.min.js"></script>
<script src="/workflow/resource/src/layui/layui.js"></script>
</head>
<body>
	<div class="layui-form">
		<div class="title">
			<table class="layui-table">
				<c:if test="${not empty thing}">
					<thead>
						<tr>
							<th>事项名称</th>
							<th>群众姓名</th>
							<th>电话</th>
							<th>办理数量</th>
							<th>办理类型</th>
							<th>当前状态</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>${thing.name }</td>
							<td>${thing.bname }</td>
							<td>${thing.bphone }</td>
							<td>${thing.number }</td>
							<td><c:if test="${thing.typeid==1 }">代办</c:if> <c:if
									test="${thing.typeid==2 }">代收</c:if> <c:if
									test="${thing.typeid==3 }">代发</c:if> <c:if
									test="${thing.typeid==4 }">一体化救助平台</c:if></td>
							<td><c:if test="${thing.status==1 }">社区已交件</c:if> <c:if
									test="${thing.status==2 }">部门已接件</c:if> <c:if
									test="${thing.status==3 }">部门已办结</c:if> <c:if
									test="${thing.status==4 }">部门已返件</c:if> <c:if
									test="${thing.status==5 }">返件已完成</c:if> <c:if
									test="${thing.status==6 }">部门已退件</c:if> <c:if
									test="${thing.status==7 }">退件已完成</c:if> <c:if
									test="${thing.status==8 }">部门已交件</c:if> <c:if
									test="${thing.status==9 }">社区已接件</c:if></td>
						</tr>
					</tbody>
				</c:if>
			</table>
		</div>
		<div class="bodys">
			<c:if test="${not empty list }">

				<ul class="layui-timeline">
					<c:forEach var="incident" items="${list }">
						<li class="layui-timeline-item"><i
							class="layui-icon layui-timeline-axis">&#xe63f;</i>
							<div class="layui-timeline-content layui-text">
								<h3 class="layui-timeline-title">${incident.createdateS }</h3>
								<p>
								<table class="layui-table" lay-skin="line">
									<c:if test="${incident.status==1}">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>交件时间</th>
												<th>交件社区</th>
												<th>办理部门</th>
												<th>中转部门</th>
												<th>交件人签名签名</th>
												<th>中转部门接件人签名签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==1}">社区已交件</c:if>
												<td>${incident.createdateS }</td>
												<td>${incident.sendunit }</td>
												<td>${incident.snapinunit }</td>

												<td>${incident.accepetunit }</td>
												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>

									<c:if test="${incident.status==2&&thing.typeid==1 }">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>中转时间</th>
												<th>办理时限(工作日)</th>
												<th>中转部门交件人签名签名</th>
												<th>办理部门接件人签名签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==2 }">部门已接件</c:if></td>
												<td>${incident.createdateS }</td>

												<td>${incident.time }</td>
												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==2&&thing.typeid==4 }">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>中转时间</th>
												<th>中转部门交件人签名</th>
												<th>办理部门接件人签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==2 }">部门已接件</c:if></td>
												<td>${incident.createdateS }</td>

												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==2&&thing.typeid==2 }">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>中转时间</th>
												<th>中转部门交件人签名</th>
												<th>办理部门接件人签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==2 }">部门已接件</c:if></td>
												<td>${incident.createdateS }</td>

												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==3}">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>办结时间</th>
												<th>办理部门办结人</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==3 }">部门已办结</c:if></td>
												<td>${incident.createdateS }</td>
												<td>${incident.acceptname }</td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==4}">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>返件时间</th>
												<th>办理部门返件人</th>
												<th>中转部门接件人签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==4 }">部门已返件</c:if></td>
												<td>${incident.createdateS }</td>
												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==5||incident.status==7}">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>中转时间</th>
												<th>中转部门发件人签名</th>
												<th>社区接件人签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==5 }">返件已完成</c:if> <c:if
														test="${incident.status==7 }">退件已完成</c:if></td>
												<td>${incident.createdateS }</td>
												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==6}">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>退件时间</th>
												<th>退件理由</th>
												<th>办理部门交件人签名</th>
												<th>中转部门接件人签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==6}">部门已退件</c:if></td>
												<td>${incident.createdateS }</td>
												<td>${incident.reason }</td>
												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==8}">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>交件时间</th>
												<th>交件部门</th>
												<th>接件社区</th>
												<th>中转部门</th>
												<th>交件人签名签名</th>
												<th>中转部门接件人签名签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==8 }">部门已交件</c:if></td>

												<td>${incident.createdateS }</td>
												<td>${incident.sendunit }</td>
												<td>${incident.snapinunit }</td>

												<td>${incident.accepetunit }</td>
												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
									<c:if test="${incident.status==9}">
										<thead>
											<tr>
												<th>状态名称</th>
												<th>中转时间</th>
												<th>中转部门交件人签名</th>
												<th>接件社区接件人签名</th>
											</tr>
										</thead>
										<tbody>
											<tr>
												<td><c:if test="${incident.status==9 }">社区已接件</c:if></td>
												<td>${incident.createdateS }</td>
												<td><img src="${incident.signatures }" alt=".." /></td>
												<td><img src="${incident.signaturea }" alt=".." /></td>
											</tr>
										</tbody>
									</c:if>
								</table>
								</p>

							</div></li>
					</c:forEach>


				</ul>

			</c:if>
			</table>
		</div>
	</div>
</body>
<script type="text/javascript">
	function closeLayer() {
		var index = parent.layer.getFrameIndex(window.name);
		parent.layer.close(index);
	}
</script>
</html>